home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / Modules / config.c next >
Encoding:
C/C++ Source or Header  |  1996-08-20  |  5.7 KB  |  244 lines  |  [TEXT/CWIE]

  1. /* -*- C -*- ***********************************************
  2. Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  3. The Netherlands.
  4.  
  5.                         All Rights Reserved
  6.  
  7. Permission to use, copy, modify, and distribute this software and its 
  8. documentation for any purpose and without fee is hereby granted, 
  9. provided that the above copyright notice appear in all copies and that
  10. both that copyright notice and this permission notice appear in 
  11. supporting documentation, and that the names of Stichting Mathematisch
  12. Centrum or CWI not be used in advertising or publicity pertaining to
  13. distribution of the software without specific, written prior permission.
  14.  
  15. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  16. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17. FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
  18. FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  20. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  21. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  
  23. ******************************************************************/
  24.  
  25. /* Macintosh Python configuration file */
  26.  
  27. #include "Python.h"
  28. /* Table of built-in modules.
  29.    These are initialized when first imported.
  30.    Note: selection of optional extensions is now generally done by the
  31.    makesetup script. */
  32.  
  33. extern void initarray();
  34. extern void initmath();
  35. #ifndef WITHOUT_COMPLEX
  36. extern void initcmath();
  37. #endif
  38. extern void initparser();
  39. extern void initmac();
  40. extern void MacOS_Init();
  41. extern void initregex();
  42. extern void initstrop();
  43. extern void initstruct();
  44. extern void inittime();
  45. extern void initdbm();
  46. extern void initfcntl();
  47. extern void initnis();
  48. extern void initpwd();
  49. extern void initgrp();
  50. extern void initcrypt();
  51. extern void initselect();
  52. extern void initsocket();
  53. extern void initaudioop();
  54. extern void initimageop();
  55. extern void initrgbimg();
  56. #ifdef USE_STDWIN
  57. extern void initstdwin();
  58. #endif
  59. extern void initmd5();
  60. extern void initmpz();
  61. extern void initrotor();
  62. extern void inital();
  63. extern void initcd();
  64. extern void initcl();
  65. extern void initfm();
  66. extern void initgl();
  67. extern void initimgfile();
  68. extern void initimgformat();
  69. extern void initsgi();
  70. extern void initsv();
  71. extern void initfl();
  72. extern void initthread();
  73. extern void inittiming();
  74. extern void initsignal();
  75. extern void initnew();
  76. extern void initdl();
  77. extern void initsyslog();
  78. extern void initgestalt();
  79. extern void initmacfs();
  80. extern void initbinascii();
  81. #ifdef THINK
  82. extern void initmacconsole();
  83. #endif
  84. #ifdef USE_MACCTB
  85. extern void initctb();
  86. #endif
  87. #ifdef USE_MACSPEECH
  88. extern void initmacspeech();
  89. #endif
  90. #ifdef USE_MACTCP
  91. extern void initmacdnr();
  92. extern void initmactcp();
  93. #endif
  94. #ifdef USE_TOOLBOX
  95. extern void initAE();
  96. extern void initCtl();
  97. extern void initDlg();
  98. extern void initEvt();
  99. extern void initFm();
  100. extern void initList();
  101. extern void initMenu();
  102. extern void initQd();
  103. extern void initRes();
  104. extern void initSnd();
  105. extern void initScrap();
  106. extern void initTE();
  107. extern void initWin();
  108. #endif
  109. #ifdef USE_QT
  110. extern void initCm();
  111. extern void initQt();
  112. #endif
  113.  
  114. #ifdef USE_IMG
  115. extern void initimgcolormap();
  116. extern void initimgformat();
  117. extern void initimggif();
  118. extern void initimgjpeg();
  119. extern void initimgpbm();
  120. extern void initimgppm();
  121. extern void initimgpgm();
  122. extern void initimgtiff();
  123. extern void initimgsgi();
  124. extern void initimgop();
  125. #endif
  126. #ifdef USE_TK
  127. extern void init_tkinter();
  128. #endif
  129. #ifdef USE_GUSI
  130. extern void initsocket();
  131. extern void initselect();
  132. #endif
  133. #ifdef USE_WASTE
  134. extern void initwaste();
  135. #endif
  136. /* -- ADDMODULE MARKER 1 -- */
  137.  
  138. extern void PyMarshal_Init();
  139. extern void initimp();
  140.  
  141. struct _inittab inittab[] = {
  142.  
  143.     {"array", initarray},
  144. #ifndef SYMANTEC__CFM68K__
  145. /* The math library seems mostly broken... */
  146.     {"math", initmath},
  147. #endif
  148. #ifndef WITHOUT_COMPLEX
  149.     {"cmath", initcmath},
  150. #endif
  151.     {"parser", initparser},
  152.     {"mac", initmac},
  153.     {"MacOS", MacOS_Init},
  154.     {"regex", initregex},
  155.     {"strop", initstrop},
  156.     {"struct", initstruct},
  157.     {"time", inittime},
  158.     {"audioop", initaudioop},
  159.     {"imageop", initimageop},
  160.     {"rgbimg", initrgbimg},
  161. #ifdef USE_STDWIN
  162.     {"stdwin", initstdwin},
  163. #endif
  164.     {"md5", initmd5},
  165.     {"rotor", initrotor},
  166.     {"new", initnew},
  167.     {"gestalt", initgestalt},
  168.     {"macfs", initmacfs},
  169.     {"binascii", initbinascii},
  170. #ifdef THINK_C
  171. /* This is an interface to the Think runtime */
  172.     {"macconsole", initmacconsole},
  173. #endif
  174. #ifdef USE_MACCTB
  175.     {"ctb", initctb},
  176. #endif
  177. /* This could probably be made to work on other compilers... */
  178. #ifdef USE_MACSPEECH
  179.     {"macspeech", initmacspeech},
  180. #endif
  181. #ifdef USE_MACTCP
  182.     {"macdnr", initmacdnr},
  183.     {"mactcp", initmactcp},
  184. #endif
  185. #ifdef USE_TOOLBOX
  186.     {"AE", initAE},
  187.     {"Ctl", initCtl},
  188.     {"Dlg", initDlg},
  189.     {"Evt", initEvt},
  190.     {"Fm", initFm},
  191.     {"Menu", initMenu},
  192.     {"List", initList},
  193.     {"Qd", initQd},
  194.     {"Snd", initSnd},
  195.     {"Scrap", initScrap},
  196.     {"TE", initTE},
  197.     {"Win", initWin},
  198.     {"Res", initRes},
  199. #endif
  200. #ifdef USE_QT
  201.     {"Cm", initCm},
  202.     {"Qt", initQt},
  203. #endif
  204. #ifdef USE_IMG
  205.     {"imgcolormap",    initimgcolormap},
  206.     {"imgformat",    initimgformat},
  207.     {"imggif",    initimggif},
  208.     {"imgjpeg",    initimgjpeg},
  209.     {"imgpbm",    initimgpbm},
  210.     {"imgppm",    initimgppm},
  211.     {"imgpgm",    initimgpgm},
  212.     {"imgtiff",    initimgtiff},
  213.     {"imgsgi",    initimgsgi},
  214.     {"imgop",    initimgop},
  215. #endif
  216. #ifdef USE_TK
  217.     {"_tkinter",    init_tkinter},
  218. #endif
  219. #ifdef USE_GUSI
  220.     {"socket",    initsocket},
  221.     {"select",    initselect},
  222. #endif
  223. #ifdef USE_WASTE
  224.     {"waste",    initwaste},
  225. #endif
  226.  
  227. /* -- ADDMODULE MARKER 2 -- */
  228.  
  229.     /* This module "lives in" with marshal.c */
  230.     {"marshal", PyMarshal_Init},
  231.     
  232.     /* This module "lives in" with import.c */
  233.     {"imp", initimp},
  234.  
  235.     /* These entries are here for sys.builtin_module_names */
  236.     {"__main__", NULL},
  237.     {"__builtin__", NULL},
  238.     {"sys", NULL},
  239.  
  240.     /* Sentinel */
  241.     {0, 0}
  242. };
  243.  
  244.